home *** CD-ROM | disk | FTP | other *** search
/ ftp.sustworks.com 2018 / ftp.sustworks.com.zip / ftp.sustworks.com / IPNetSentry_12.hqx / IPNetSentry_12 / IPNetSentry AppleScripts / IPNS Eudora AppleScript < prev    next >
Text File  |  2000-12-21  |  1KB  |  47 lines

  1. -- first get the trigger info from IPNetSentry
  2. tell application "IPNetSentry.PPC"
  3.     set theTriggerIPAddress to triggeripaddress
  4.     set theTriggerPort to triggerport
  5.     set theTriggerProtocol to triggerprotocol
  6.     set theTriggerService to triggerservice
  7.     set theTriggerTime to triggertime
  8.     set theTriggerDate to triggerdate
  9.     set myNotification to "IPNetSentry trigger
  10. Remote IP Address: " & theTriggerIPAddress & "
  11. Port: " & theTriggerPort & "
  12. Protocol: " & theTriggerProtocol & "
  13. Service: " & theTriggerService & "
  14. Time: " & theTriggerTime & "
  15. Date: " & theTriggerDate
  16. end tell
  17. -- now send it to us via Eudora
  18. tell application "Eudora Pro 3.0"
  19.     -- Create a new message in the out box
  20.     set newMsg to make message at end of mailbox "out"
  21.     
  22.     -- Message 0 indicates the current message
  23.     -- Set the recipient of the message
  24.     set field "to" of newMsg to "TO_EMAIL_ADDRESS"
  25.     
  26.     -- Set who the message is from;
  27.     -- This must be set to a valid address so that you can receive replies 
  28.     set field "from" of newMsg to "FROM_EMAIL_ADDRESS"
  29.     
  30.     -- set the subject of the message
  31.     set field "subject" of newMsg to "IPNetSentry Tigger Alert"
  32.     
  33.     -- set the cc recipients of the message
  34.     -- set field "cc" of newMsg to "cc@hostname.com"
  35.     
  36.     -- set the bcc recipients of the message
  37.     -- set field "bcc" of newMsg to "bcc@hostname.com"
  38.     
  39.     -- set the body of the message
  40.     -- field "" indicates the body of the message
  41.     set field "" of newMsg to myNotification
  42.     
  43.     queue newMsg
  44.     connect
  45. end tell
  46.  
  47.